import axios from 'axios';
import {
  loginreq,
  req,
  captchareq,
  req_info,
  reqPage,
  reqDeleteUser,
  Adduser,
  Permission,
  singer,
  file,
  number
} from './axiosFun';

const BaseUrl = "http://60.205.253.99:7654/"
// const BaseUrl = "http://127.0.0.1:7654/"

//分页查询商店
export const getAllStroe=(page,size) => {return number("get",BaseUrl+`shop/pagingQueryStore?page=${page}&size=${size}`)}
//通过id获取店铺信息
export const searchStoreByStoreId=(id) => {return number("get",BaseUrl+`shop/searchStoreByStoreId?id=${id}`)}
//获取所有商店的数量
export const getAllsp=()=>{return number("get",BaseUrl+`shop/getAllSp`)}
//通过星级查询不同用户的数量
export const getNumberByStart=(start)=>{return number("get",BaseUrl+`shop/getNumberByStart?start=${start}`)}
//通过星级查询店铺，分页
export const searchStoresByStarRating=(start,page,size)=>{return number("get",BaseUrl+`shop/searchStoresByStarRating?start=${start}&page=${page}&size=${size}`)}

